package org.jeecg.modules.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * @Description: 工作流一级节点
 * @Author: wufanxin
 * @Date:  2021-06-11
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_flow_parent_node")
public class WorkFlowParentNode extends JeecgEntity {

	/**
	 * 节点id
	 */
	private String nodeId;

	/**
	 * 节点名称
	 */
	private String nodeName;

	/**
	 * opType 操作类型 0 或，1且
	 */
	private String opType;

	/**
     * 回退节点id
	 */
	private String backNodeId;

	/**
     * 回退节点name
	 */
	@TableField(exist = false)
	private String backNodeName;

	/**
     * 工作流id
	 */
	private String workflowId;


	/**
     * 排序
	 */
	private Integer sort;

	/**
	 * nodeID 查询用
	 */
	@TableField(exist = false)
	private String value;

	/**
	 * nodeName 查询用
	 */
	@TableField(exist = false)
	private String label;

	/**
	 * 存储子节点信息
	 */
	@TableField(exist = false)
	private List<WorkFlowChildNode> children;

	/**
	 * 子节点数量
	 */
	@TableField(exist = false)
	private Integer childNum;

}
